<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
    // 查询科室模板
    Integer uid = token.getUid();
    String ys = "ys" + uid;
    List<Map> surveys = QBuilder.db("basedb").select("new map(id as survey_id, title as title)").from("Survey").where(new Where("hospital=", hospital).and("status = ", STATUS_ENABLE).and("enable = ", STATUS_ENABLE).and("category=2").and("belong=", ys)).query().getResultObj();
    if (surveys.size() == 0) {
        msg = new Message(30041, "你暂无随访模板");
    }
    msg.put("data", surveys);
    Tools.encryptPrint(out, msg);
%>
